<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            width:800px;
            height: 500px;
            background-image: url("../images/rabbit2.png");
            background-repeat: repeat;

            /*背景图片尺寸
                取值：
                    cover，将背景图片扩展到足够大覆盖背景区域
                    固定值:100px 200px，背景图片宽度是100，高度是200px
                           100px
            */


            /*background-size:100px 200px;*/
            background-size:100px;
        }
    </style>
</head>
<body>
    <div class="d1"></div>
</body>
</html>